#include #include using namespace std; void powiedz( const char * tekst, int czas ) { cout << tekst << endl; int t = clock(); t += czas; while( clock() < t ){} } bool czy_calkowite( float x ) { int y = x; if( x == y ) return true; return false; } int main() { float a; cout << "Podaj bok kwadratu." << endl; cin >> a; a *= 4; int b = a; if( czy_calkowite( a ) && b % 2 == 0 ) { a /= 4; a = a * a; cout << "Pole wynosi " << a; powiedz( ".", 2000 ); }else { powiedz( "Nie moge policzyc tego zadania.", 2000 ); } return 0; }